function OpenLoginWindow() {
    var winWidth = 430;
    var winHeight = 150;
    winLeft=(screen.width-winWidth)/2;
    winTop=(screen.height-winHeight)/2;
    s=location.pathname.substring(0, location.pathname.indexOf("/",1))
    s="http://"+location.host+s+"/Apps/Lib/Login.aspx";
    win=window.open(s,"Login","resizable=no,scrollbars=no,width="+winWidth+",height="+winHeight+",left="+winLeft+",top="+winTop);
    win.focus();
    return false;
}

function OpenWindow(winWidth,winHeight,scrollbars,toolbar,top,left,fileSrc)
{
    var newParamenter="width="+winWidth+"height="+winHeight+"srollbars="+scrollbars+"toolbar="+toolbar+"top="+top+"left="+left;
    newParamenter=open(fileSrc,"a",newParamenter);
    
}